﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Stats.Objects
{
    /// <summary>
    /// An object that represents all the savings in a trip
    /// </summary>
    public class TripSavings
    {
        /// <summary>
        /// the ID of the trip
        /// </summary>
        public int TripID { get; set; }
        
        /// <summary>
        /// the amount of saved fuel
        /// </summary>
        public double TripFuelSaved { get; set; }
        
        /// <summary>
        /// the amount of gas saved
        /// </summary>
        public double TripEmissionsSaved { get; set; }

        /// <summary>
        /// the amount of money saved
        /// </summary>
        public double TripMoneySaved { get; set; }

        /// <summary>
        /// constructor: create an object TripSavings
        /// </summary>
        /// <param name="trID">the ID of the trip</param>
        /// <param name="trFuelSav">the amount of saved fuel</param>
        /// <param name="trEmSav">the amount of CO2 saved</param>
        /// <param name="trMoneySav">the amount of money saved</param>
        public TripSavings(int trID, double trFuelSav, double trEmSav, double trMoneySav)
        {
            TripID = trID;
            TripFuelSaved = trFuelSav;
            TripEmissionsSaved = trEmSav;
            TripMoneySaved = trMoneySav;
        }

    }
}
